// 2021/3/12
#include<stdio.h>
int main()
{
	double Fahrenheit,Celsius,s;
	printf("Welcome to use our product!\nIf you want to transfer celsius to fahrenheit,press 0;if you want to transfer fahreneit to celsius,just press 1:\n");
	scanf("%lf",&s);
	if(s==1)
	{
	printf("Please type down the Fahrenheit here:\n");
	scanf("%lf",&Fahrenheit);
	Celsius=(Fahrenheit-32)/1.8;
	printf("%5.3fdegree fahrenheit=%5.3fdegree celsius.\n",Fahrenheit,Celsius);
    }
    if(s==0)
    {
    printf("Please type down the Celsius here:\n");
    scanf("%lf",&Celsius);
    Fahrenheit=Celsius*1.8+32;
    printf("%5.3fdegree celsius=%5.3fdegree fahrenheit.\n",Celsius,Fahrenheit);
    
	}
	printf("Thank you for your using!");
	return 0;
 } 

